<extend name="Public/base" />
<block name="body">
    <div class="main-title">
        <h2>待确认采购</h2>
    </div>

    <div class="cf">
    </div>
    <!-- 数据列表 -->
    <div class="data-table table-striped">
        <table class="">
            <thead>
            <tr>
                <th class="">批次</th>
                <th class="">备注</th>
                <th class="">采购员</th>
                <th class="">到货时间</th>
                <th class="">操作</th>
            </tr>
            </thead>
            <tbody>
            <notempty name="_list">
                <volist name="_list" id="vo">
                    <tr>
                        <td>{$vo.batch}</td>
                        <td>{$vo.mark}</td>
                        <td>{$vo.user}</td>
                        <td>{$vo.arriveTime|time_format}</td>
                        <td>
                            <a href="{:U('Purchase/prodetail')}&batch={$vo.batch}" class="btn btn-primary ">明细</a>
                            <a href="{:U('Purchase/proaccept')}&batch={$vo.batch}" class="btn btn-danger confirm">确认</a>
                        </td>
                    </tr>
                </volist>
                <else/>
                <td colspan="6" class="text-center"> aOh! 暂时还没有内容! </td>
            </notempty>
            </tbody>
        </table>
<!---->
    </div>
    <div class="page">
        {$_page}
    </div>
</block>

<block name="script">

    <script src="__STATIC__/thinkbox/jquery.thinkbox.js"></script>

    <script type="text/javascript">
        highlight_subnav('{:U('Purchase/confirmpurchase')}');
    </script>
    <script type="text/javascript">
        $('.confirm').click(function(){
            if(confirm("请确认操作")){
            }else{
                return false;
            }
        })
    </script>
</block>